package chain;

/**
 *
 * @author dakhoa
 * @version 1.0
 */
public class BaseRequestHandler extends AbstractRequestHandlerCommand {

    public static final String AJAX_REQUEST = "AJAX_REQUEST";
    public static final String ACTION = "_action";

    @Override
    public boolean execute(EDATContext cntxt) throws Exception {
        cntxt.setIsAjaxRequest(cntxt.getRequest().getHeader(AJAX_REQUEST) != null);
//        String action = cntxt.getRequest().getParameter(ACTION);
//        cntxt.setRequestAction(action == null ? "" : action);
        return CONTINUE_PROCESSING;
    }
}
